import request from '@/utils/request'

const BASEURL = '/admin/core/borrowInfo'

export function getList() {
  return request({
    url: `${BASEURL}/list`,
    method: 'get',
  })
}

export function show(id) {
  return request({
    url: `${BASEURL}/show/${id}`,
    method: 'get',
  })
}

export function approval(borrowInfoApproval) {
  return request({
    url: `${BASEURL}/approval`,
    method: 'post',
    data: borrowInfoApproval,
  })
}
